package com.hxgz.steel.dao;

import com.hxgz.steel.domain.Address;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("AddressMapper")
public interface AddressMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    List<Address> getAddressList(@Param("userId") Long userId);

    int recoverStatus(@Param("userId") Long userId,@Param("id") Long id);

    int settingAddressStatus(@Param("userId") Long userId);

    Address getDefuAddress(@Param("userId") Long userId);
}